package com.zymail.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zymail.bean.ZyMap;
import com.zymail.mapper.ZyMapMapper;
import com.zymail.service.ZyMapService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Dorado
 * @since 2021-04-12
 */
@Service
public class ZyMapServiceImpl extends ServiceImpl<ZyMapMapper, ZyMap> implements ZyMapService {

    @Override
    public String getvalue(String key) {
        QueryWrapper<ZyMap> wrapper = new QueryWrapper<>();
        wrapper.eq("map_key", key);
        return getOne(wrapper).getValue();
    }
}
